﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ANMCMaster.Master" AutoEventWireup="true" CodeBehind="ErrorPage.aspx.cs" Inherits="AllNations.ErrorPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ANHeaderContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ANBodyContent" runat="server">
    <article class="node static-page content">
        <script language="javascript" type="text/javascript">
		    <!--
            function toggle() {
                // Hide/show div.
                var eDiv = document.getElementById("errorDetails");
                var expanded = false;

                if (eDiv.style.display == 'none') {
                    eDiv.style.display = ''; // Show the section.
                    expanded = true;
                }
                else {
                    eDiv.style.display = 'none'; // Hide the section.
                    expanded = false;
                }

                // Show +/- sign
                var plusMinusControl = document.getElementById("plusminus");
                var src = plusMinusControl.src;
                if (expanded)
                    plusMinusControl.src = src.replace("plus", "minus");
                else
                    plusMinusControl.src = src.replace("minus", "plus");
            }
		    -->
        </script>
    
        <table cellspacing="0" cellpadding="0" width="100%" border="0">
            <tr>
                <td>
                    <table width="100%" cellpadding="0" cellspacing="0" class="resultsTable" style="border-right: #c0c0c0 1px solid;
                        border-top: #c0c0c0 1px solid; border-left: #c0c0c0 1px solid; border-bottom: #c0c0c0 1px solid;
                        background-color: white">
                        <tr height="30">
                            <td align="center" width="100%" class="txtBold" style="font-size: 18px; color: red">
                                <b><asp:Literal ID="literalTitle" runat="server" Text="Application Error" /></b>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <table width="100%" border="0" cellpadding="10" cellspacing="0">
                        <tr style="background-color: white">
                            <td>
                                Sorry, your action resulted in an error. Our system administrators have been notified,
                                and the error has been logged.
                                <br />
                                <br />
                                Please continue by clicking on the menu above.
                                <br />
                                <br />
                                If this problem persists, please contact our support group at <a href="mailto:webmaster@anmc.us&amp;subject=Application Error <%=GetErrorIdentifier() %>">
                                    webmaster@anmc.us</a>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <asp:Panel ID="pnlErrDetail" runat="server" Visible="False">
            <br />
            <table cellspacing="0" cellpadding="0" border="0">
                <tr style="background-color: white">
                    <td nowrap="nowrap" width="10">
                    </td>
                    <td class="resultsRowA">
                            <img id="plusminus" name="plusminus" onclick="toggle();" src='<%= ResolveUrl("~/Images/plus.gif") %>' />
                            <b>&nbsp;Error Details</b>
                        <br />
                        <br />
                        <div id="errorDetails" style="display: none">
                            <asp:Literal ID="literalError" Text="No error detail is available" runat="server"></asp:Literal></div>
                    </td>
                </tr>
            </table>
        </asp:Panel>
    </article>
</asp:Content>
